package com.wu.flandre.entity.table;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wu
 * @since 2019-12-15
 */
@TableName("ApiCallError")
public class ApiCallError extends Model<ApiCallError> {

    private static final long serialVersionUID = 1L;

    /**
     * 错误日志ID
     */
    @TableId("ErrorLogId")
    private String ErrorLogId;

    /**
     * 错误日志内容
     */
    @TableField("ErrorMessage")
    private String ErrorMessage;

    /**
     * 请求URL
     */
    @TableField("URI")
    private String uri;

    /**
     * 发生时间
     */
    @TableField("CreateTime")
    private LocalDateTime CreateTime;

    /**
     * 是否已删除0正常1删除
     */
    @TableField("isDel")
    private Integer isDel;


    public String getErrorLogId() {
        return ErrorLogId;
    }

    public void setErrorLogId(String ErrorLogId) {
        this.ErrorLogId = ErrorLogId;
    }

    public String getErrorMessage() {
        return ErrorMessage;
    }

    public void setErrorMessage(String ErrorMessage) {
        this.ErrorMessage = ErrorMessage;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public LocalDateTime getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(LocalDateTime CreateTime) {
        this.CreateTime = CreateTime;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.ErrorLogId;
    }

    @Override
    public String toString() {
        return "ApiCallError{" +
                "ErrorLogId=" + ErrorLogId +
                ", ErrorMessage=" + ErrorMessage +
                ", uri=" + uri +
                ", CreateTime=" + CreateTime +
                ", isDel=" + isDel +
                "}";
    }
}
